{extend name="public:_base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/uploadify/uploadify.css">
{/block}
{block name="js"}
{include file="public/_validform"}

<!--上传配置 -->
<script src="__STATIC__/admin/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/upfile.js" type="text/javascript"></script>

<script type="text/javascript">
    upload_image('image', '', '200', '200', '500');
    var URL = {
        uploader: '{:url('admin/Upload/image')}',
        swf:'__STATIC__/admin/uploadify/uploadify.swf',
        ROOT:'__PUBLIC__/uploads/image',
    }
</script>
{/block}
{block name="main"}

<div class="user_conver">

    {include file="public:_right"}

    <!-- 我的资料 -->
    <div class="user_item my_data">
        <!-- 标题 -->
        <div class="user_item_title">
            <i class="glyphicon glyphicon-cog"></i>
            我的资料 <font>MY PROFILE</font>
        </div>
        <!-- #标题 -->

        <!-- 内容 -->
        <div class="user_item_cont user_info_cont">

            <form class="form form-horizontal" action="{:url('mydata/save')}" id="form1" method="post">
                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2">{:lang('Avatar')}：222*157</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <div id="image_s">
                            <img src="__PUBLIC__/uploads/{$data.image ?'image/'.$data.image: 'sm_nopic.jpg'}" width="200px" height="200px"/>
                        </div>
                        <input id="image_post" name="image" type="hidden" value="{$data.image}"/>
                        <input name="old_image" type="hidden" value="{$data.image}"/>
                        <input id="image" name="image_upload" type="file" multiple="true">
                    </div>
                </div>

                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2">{:lang('user')}：</label>
                    <div class="formControls col-xs-10 col-sm-10">{$data.name}</div>
                </div>

                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>{:lang('Phone')}：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <input type="text" class="input-text" value="{$data.mobile}" placeholder="{:lang('Phone')}" datatype="m" name="mobile">
                    </div>
                    <div class="col-xs-3 col-ms-3"></div>
                </div>

                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>QQ：</label>
                    <div class="formControls col-xs-10 col-sm-106">
                        <input type="text" class="input-text" value="{$data.QQ}" placeholder="QQ" datatype="n6-12" name="QQ">
                    </div>
                    <div class="col-xs-3 col-ms-3"></div>
                </div>

                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>{:lang('email')}：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        {empty name="$data.ismail"}
                        <input type="text" class="input-text" value="{$data.mail}" placeholder="{:lang('email')}" datatype="e" name="key">
                        {else/}
                        {$data.mail}
                        {/empty}
                    </div>
                    <div class="col-xs-3 col-ms-3"></div>
                </div>

                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>{:lang('Introduction')}：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <textarea name="jieshao" cols="" rows="" class="textarea" placeholder="{:lang('Enter at least 10 characters')}" datatype="*10-100" dragonfly="true">{$data.jieshao}</textarea>
                    </div>
                    <div class="col-xs-3 col-ms-3"></div>
                </div>

                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2">{:lang('Registration time')}：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        {$data.create_time}
                    </div>
                </div>

                {eq name="$data.status" value="2"}
                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2">{:lang('Review the situation')}：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        {$data.error}
                    </div>
                </div>
                {/eq}

                <div class="row cl">
                    <div class="col-xs-6 col-sm-6 col-xs-offset-4 col-sm-offset-2">
                        <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;{:lang('save')}&nbsp;&nbsp;">
                        <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;{:lang('cancel')}&nbsp;&nbsp;">
                    </div>
                </div>
            </form>

        </div>
        <!-- #内容 -->
    </div>
    <!-- #我的资料 -->

</div>

{/block}

